Diary 2025-04-03
operation log
XREAL One
Based on the consideration that the language of context is important, first open Cosense
This is the most important window
[Resolving an issue where dark cluster extraction doesn't look the same when tried with smaller data of 50 cases - Issue #96 - digitaldemocracy2030/kouchou-ai https://github.com/digitaldemocracy2030/kouchou- ai/issues/96]
open a result for client development - Issue #223 - digitaldemocracy2030/kouchou-ai
Bring sample50 and sample400?
Where is it?
cybozu-kouchou-ai?
No, there was aipubcom and bikeshed-attak, bikeshed-nonattack
I'm not sure if this aipubcom is the old one or the recently reworked one (maybe the recent one).
It was a little over 3,000, maybe not.
kouchou-ai-dev?
This one doesn't have a name on the artifact.
docker-compose up
Sample 400 was there.
Sample50 was also just a confusing name.
I changed the name to something easier to understand and threw out the error stuff.
It's easy to make a 96 fix messy, but there are a lot of things to worry about.
Devin opened.
https://gyazo.com/e81ed42f041fadc9168354ea720d41f4
Ask Devin if he wants to do something like this, and he'll tell you where to tweak the code there.
They added debugging output.
Doesn't show up, does it?
Oh, you're ISRing it when you stand it up with docker-compose up.
$ make client-dev
This sets up a dummy server.
client-dev-server client-admin-dev-server dummy-server
What is a dummy server?
in /util/dummy-server
I couldn't figure out how to put the data down.
$ docker compose up -d api
code::
⨯ TypeError: fetch failed {
digest: '691811448',
cause: Error: getaddrinfo ENOTFOUND api {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'api'
}
}
code:/.env
# Path to access the python API from the server side of next.js. No need to change
API_BASEPATH=http://api:8000
Uh-oh.
I changed it to localhost, but no luck.
Ah, well, that's what happens when you change environment variables.
$ docker compose up -d api --build
It does not seem to be the case that
nishio.iconI couldn't figure out how to put any data I wanted on the dummy server, so I'm docker compose up -d api and make client-dev-server.
devin.iconI see, in that case the API_BASEPATH and NEXT_PUBLIC_API_BASEPATH in the .env file should be set to http://api:8000. The Docker service name is api, so use api instead of localhost.
Okay.
code:client/.env
#NEXT_PUBLIC_API_BASEPATH="http://localhost:8000"
NEXT_PUBLIC_API_BASEPATH=http://localhost:8000
NEXT_PUBLIC_PUBLIC_API_KEY=public
code:.env
# Path to access the python API from the client side of next.js. No need to change
NEXT_PUBLIC_API_BASEPATH=http://localhost:8000
# Path to access the python API from the server side of next.js. No need to change
API_BASEPATH=http://api:8000
$ docker compose up -d api --build
$ make client-dev-server
This worked fine.
I think I tried that Bataan too...
#NEXT_PUBLIC_API_BASEPATH="http://localhost:8000"
Were these quotation marks superfluous?
https://gyazo.com/3ed9284d03d47513d1e4b40154f3f8b1
It's done.
I don't know how to format the source code...
Planned but not yet started
[Enable inclusion of reports on hand when deploying to Azure - Issue #216 - digitaldemocracy2030/kouchou-ai https://github.com/digitaldemocracy2030/kouchou-ai/ issues/216]
[Putting Azure deployment update work into a Makefile - Issue #214 - digitaldemocracy2030/kouchou-ai https://github.com/digitaldemocracy2030/kouchou-ai/issues/ 214]
Allow direct input of cluster count changes - Issue #222 - digitaldemocracy2030/kouchou-ai✅
Report duplication and reuse functionality - Issue #19 - digitaldemocracy2030/kouchou-ai
Diary 2025-04-02 ← Diary 2025-04-03 → Diary 2025-04-04
100 days ago Diary 2024-12-24.
1 year ago Diary 2024-04-03.
---
This page is auto-translated from /nishio/日記2025-04-03 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.